package canss.webservice.controls;

import java.sql.Timestamp;

import org.apache.beehive.controls.api.bean.ControlInterface;

import canss.webservice.model.Event;

import weblogic.jdbc.SQLExceptionWrapper;

@ControlInterface
public interface EventControl
{

	int getNumofEventByMID(String _mid) throws SQLExceptionWrapper;

	int getEntireNumofEvent() throws SQLExceptionWrapper;

	Event[] getEntireEvent() throws SQLExceptionWrapper;

	Event[] getEventByMID(String _mid) throws SQLExceptionWrapper;

	Boolean addNewEvent(String _tblmid_mid, Integer eventDescription_eventid, long _canssevent_timecreatedatt_timestamp, String _canssevent_extradata)
			throws SQLExceptionWrapper;

	int removeEventUntil(long _canssevent_timecreatedatt_timestamp)
			throws SQLExceptionWrapper;

	
	String getEventExtradata(String _mid, Integer _eventid, Long _seqnum, Timestamp _timestamp)
			throws SQLExceptionWrapper;

}